/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.mts.client.utils;

import java.util.Locale;
import java.util.MissingResourceException;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

/**
 * Created by Peter on 2016/7/26.
 */
public class ResourceBundleUtils {

    private final static String resName = "i18n.i18n";
//    private final static Locale locale = new Locale("en", "US");
    private final static ResourceBundle resb = ResourceBundle.getBundle(resName);

    public static String getString(String key) {
        try {
            return resb.getString(key);
        }catch (MissingResourceException ex){
            return null;
        }

    }
}
